/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rmiinterface;

import java.io.IOException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author chris
 */
public class RegisterWithRMIServer {
    public static void main(String[] args) throws IOException {
        try {
            RMIInterface obj = new RMIServer();
            Registry registry = LocateRegistry.createRegistry(1099);
            registry.rebind("RMIServer", obj);
            System.out.println("RMIServer" + obj + "registered");
        } catch (RemoteException ex) {
            ex.printStackTrace();
        }
    }
    
}
